package org.example.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;


@RestController
public class WarmController {
    @GetMapping("/warm")
    public String warm() {
        return "Warm Up";
    }
    @GetMapping("/queue/{time}")
    public String queue(@PathVariable("time") long time) throws InterruptedException {
        Thread.sleep(time);
        return "Queue";
    }
}